home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2203 < prev    next >
Encoding:
Text File  |  1996-08-05  |  838 b   |  27 lines

  1. Path: newsfeed.internetmci.com!panix!usenet
  2. From: dm@panix.com (Dan'l)
  3. Newsgroups: comp.lang.c
  4. Subject: Can't figure this out
  5. Date: Fri, 19 Jan 1996 21:11:43 GMT
  6. Organization: PANIX Public Access Internet and Unix, NYC
  7. Message-ID: <31000091.3778302@news.panix.com>
  8. NNTP-Posting-Host: dm.dialup.access.net
  9. X-Newsreader: Forte Agent .99d/32.168
  10.  
  11. I am learning C and I have not had any problems understanding most
  12. concepts I have learned so far.  But to date I still can't figure out
  13. how the outcome of this program is 15.  Somehow one of the B's ends up
  14. a three and the other B a 5, or am I so off base that I can't see
  15. what's really happening.    Can someone please walk me through this
  16. one.                                             Thanks     Dan'l
  17.  
  18. #define A 3
  19. #define B A + A
  20. #define C B * B
  21.  
  22. main()
  23. {
  24.     printf("%d", C);
  25.     return 0;
  26. }
  27.